{include file="public/_meta"}
<script type="text/javascript" src="{$Think.config.__STATIC__}/js/jquery.js"></script>
<style>
    .f-18:hover{
        cursor:pointer;
    }
</style>
<div class="col-xs-12 col-sm-8">
    <div class="codeView" style="margin-top: 20px;">
        <table class="table table-border table-bordered table-hover">
            <thead>
            <tr>
                <th style="width:30%;">说明</th>
                <th>提示语</th>
                <th>状态检查</th>
                <th>提交</th>
            </tr>
            </thead>
            <tbody>
            <tr>
                <th>进群欢迎提示</th>
                <td><textarea class="textarea" style="width:100%; height:50%; resize:none" placeholder="留空则不发送欢迎消息"></textarea></td>

                <td style="text-align: center;"><i class="Hui-iconfont f-18">&#xe6a8;</i></td>

                <td><input class="btn btn-success radius" type="button" value="提交"></td>
            </tr>
            <tr>
                <th>是否禁止与机器人私聊,如果是，将会返回给对方禁止提示语
                    <p>如果否，该消息将会转送给大号</p>
                </th>
                <td><textarea class="textarea" style="width:100%; height:100px; resize:none" placeholder="留空则不发送消息"></textarea></td>

                <td style="text-align: center;"><i class="Hui-iconfont f-18">&#xe6a8;</i></td>

                <td>
                    <input class="btn btn-success radius" type="button" value="提交">&nbsp;&nbsp;

                        <input class="btn btn-warning radius" type="button" value="禁止">

                        <input class="btn btn-primary radius" type="button" value="开启">


                </td>
            </tr>
            <tr>
                <th>@机器人时</th>
                <td><textarea class="textarea" style="width:100%; height:50%; resize:none" placeholder="留空则不发送消息"></textarea></td>

                <td style="text-align: center;"><i class="Hui-iconfont f-18">&#xe6a8;</i></td>


                <td><input class="btn btn-success radius" type="button" value="提交"></td>
            </tr>




            </tbody>
        </table>
    </div>

</div>
<script type="text/javascript" src="{$Think.config.__STATIC__}/hadmin/lib/layer/3.1.1/layer.js"></script>
<script>

    $('.btn').on('click',function () {
        var value=console.log($(this).parent().eq(2))
    })
    // $('.btn').on('click',function(){
    //     var qishu=$(this).parent().parent().find('td').eq(0).find('input').attr('value');
    //     var num=$(this).parent().parent().find('td').eq(1).find('input').attr('value');
    //
    //     $.ajax({
    //         type : 'POST',
    //         url : "http://platform.boyi_spider.com/platform/api/test",
    //         data : {openCode:num,qh:qishu},
    //         //contentType : "application/json; charset=utf-8",
    //         dataType:'json',
    //         success : function(data){
    //             if(data.error_code==0){
    //                 alert('添加成功！');
    //             }
    //         },
    //         error:function (data) {
    //             console.log(data)
    //         }
    //
    //     })
    // })

</script>